#!/usr/bin/env python
# encoding: utf-8


"""
@version: 1.0
@author: jin.li.o
@license: Apache Licence 
@contact: x.leevin@gmail.com
@software: PyCharm
@file: class_list.py
@time: 2018/9/25
"""

listZ = [1, 0.02, True, "you", ["you", "and", "me"], 5]

listZ.append("append")

listZ.insert(2, "insert")

# print(listZ[0:listSize:2])

listSize = len(listZ)

print("删除之前的集合：{0},集合长度：{1} ".format(listZ, listSize))

result = listZ.pop()
print("删除的结果：{0}".format(result))

listZ.remove(1)
listSize = len(listZ)

print("删除之后的集合：{0},集合长度：{1} ".format(listZ, listSize))
